package threadDemo;

class MyDesign{
    private static MyDesign obj = new MyDesign();
    private MyDesign(){}
    public static MyDesign getInstance(){
        return obj;
    }
}
public class Demo4 {
    public static void main(String[] args) {

    }
}
